package com.liu.usky.rlzp.uskyrlzp.service.impl;

import com.liu.usky.rlzp.uskyrlzp.entity.Equity;
import com.liu.usky.rlzp.uskyrlzp.mapper.EquityMapper;
import com.liu.usky.rlzp.uskyrlzp.mapper.UserEquityMapper;
import com.liu.usky.rlzp.uskyrlzp.service.IEquityService;
import com.liu.usky.rlzp.uskyrlzp.service.IUserEquityService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 权益 服务实现类
 * </p>
 *
 * @author lcjzl
 * @since 2020-01-10
 */
@Service
public class EquityServiceImpl extends ServiceImpl<EquityMapper, Equity> implements IEquityService {

	@Autowired
	private UserEquityMapper userEquityMapper;
	@Override
	public List<Equity> getByUserId(Integer userId) {
		return userEquityMapper.getUserEquity(userId);
	}

}
